﻿using System.Configuration;

namespace Tilver.Configuration.Data
{
    public class ConnectionStringsCollection : ConfigurationElementCollection
    {
        protected override ConfigurationElement CreateNewElement()
        {
            return new ConnectionStringElement();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((ConnectionStringElement)element).Name;
        }

        public new ConnectionStringElement this[string name]
        {
            get { return BaseGet(name) as ConnectionStringElement; }
        }
    }
}
